<h1>Editing features</h1>

<%= error_messages_for :feature %>

<% form_for(:feature, :url => feature_path(@feature), :html => { :method => :put,:multipart=>true }) do |f| %>
<div class="FormBlock">
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Image</b><br />
    <%= file_field_tag :file%>
  </p>

  <p>
    <b>Label Cn</b><br/>
    <%= f.text_field :label_cn%>
    <b>Title Cn</b><br/>
    <%= f.text_field :title_cn%>
    <b>Intro cn</b><br />
    <%= f.text_area :intro_cn %>
  </p>

  <p>
    <b>Label En</b><br/>
    <%= f.text_field :label_en%>
    <b>Title en</b><br/>
    <%= f.text_field :title_en%>
    <b>Intro en</b><br />
    <%= f.text_area :intro_en %>
  </p>

  <p>
    <b>Label big5</b><br/>
    <%= f.text_field :label_big5%>
    <b>Title big5</b><br/>
    <%= f.text_field :title_big5%>
    <b>Intro big5</b><br />
    <%= f.text_area :intro_big5 %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
  </div>
<% end %>

<%= link_to 'Show', feature_path(@feature) %> |
<%= link_to 'Back', features_path %>
